//
//  ScoreListCell.m
//  edu
//
//  Created by baobaodp on 13-8-26.
//  Copyright (c) 2013年 baobaodp. All rights reserved.
//

#import "ScoreListCell.h"

@implementation ScoreListCell

@synthesize lessonName;
@synthesize score;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void) setData:(Record *) record index: (int) rowIndex imgName:(NSString *) imgName
{
    self.lessonName.text = [record getFieldValueByName:@"lesson_Title"];
    self.score.text = [record getFieldValueByName:@"R_Souce"];
    
    UIImage *img=[UIImage imageNamed:imgName];
    self.imgView.image =img;

}

@end
